import { get, post } from "@/utils/request";
// 分页查询
export function queryPageList(query) {
  return get("/mgxxServer/hostEmpower/pageList", query);
}

//新增
export function add(query) {
  return post("/mgxxServer/hostEmpower/add", query);
}
//编辑
export function edit(query) {
  return post("/mgxxServer/hostEmpower/edit", query);
}


// 生成或验证编号
export function getNo(id,no) {
  return get("/mgxxServer/hostEmpower/getNo",{ id ,no});
}

// 验证是否授权通过
export function getEmpower() {
  return get("/mgxxServer/hostEmpower/getEmpower");
}

// 授权终端统计
export function HostTallyTotal() {
  return get("/mgxxServer/hostEmpower/HostTallyTotal");
}
//key授权
export function keyEmpowerTally(keyEmpowerTxt) {
  return get("/mgxxServer/hostEmpower/keyEmpowerTally",{keyEmpowerTxt});
}


